﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EQual.MainModule.QualityEvents
{
    public class QualityEventPresentationModel : EQual .Infrastructure .MVPFramework .Models .PresentationModelBase <DataAccesLayer .QualityEvent >
    {
        DataAccesLayer.QualityEventType _qualityEventType;

        public DataAccesLayer.QualityEventType QualityEventType
        {
            get { return _qualityEventType; }
            set { _qualityEventType = value; }
        }

        public QualityEventPresentationModel()
        {
            DataFactory = new DataAccesLayer.EQualDataLayerFactory();
        }

        protected override IEnumerable<DataAccesLayer.QualityEvent> GetCollection()
        {
            return DataFactory.GetProjectsAccesLayer().GetQualityEvents(QualityEventType);
        }

        protected override void CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            base.CollectionChanged(sender, e);
        }
    }
}
